"Scheme one" BAT + REG + VBS
Copy Code code as follows:
@echo off
:: Demo: Deletes a folder that precedes the specified number of days in the specified path, whichever is the last modified date of the folder.
:: If the demo results
Date--helpUsage: date [options] ... [+ format]Or: Date [-u|--utc|--universal] [MMDDHHMM[[CC]YY][.SS]]Displays the current time in the given format, or sets the system date.-D,--date= string displays the time described by the specified string, not
Originally want to use batch processing, think of time is too troublesome ...
Immediately install PowerShell look at the help document, which has an example:
The following command looks up the last modified date in the Program Files folder later
Description:
Provides access to folder properties.
Attribute:
Attribute
Description
Attributes
Sets or returns the attributes of a file or folder.
Datecreated
Returns the creation time
Degree Niang know: http://zhidao.baidu.com/link?url= Dd47jm6qdgt7yxsnz9e-nc4fqd33oroiiwcglkw5tl4cbf50vky2ionbhkh0ie8woewsb3p4bhbf2-u3oe4ttaExecute the shell script (which can be seen as a function bar):1#!/bin/SH2 3 Show_usage () {4 Echo "Usage:
When doing the project, often to the scene patching, after a period of time, want to put this time out of the patch pack (if every two days out of a patch package) to re-integration, a new patch package out. But how to test the patch package is not
Learn how to build a faster web site through fiddler. In this article, we'll use Fiddler to explore HTTP performance, caching, and compression.
If you have not installed and configured Fiddler, please start with the first article.
Overview of HTTP
After a day of trying, finally wrote a script to clean up the log file, the source code is as follows:#!/usr/bin/python#-*-coding=utf8-*-Import timeImport OSN = 1 #设置删除多少天钱的文件def deletefile (path):For Eachfile in Os.listdir (path):filename = Os.path.
Tar-zcvf/home/xahot.tar.gz/xahotTAR-ZCVF the directory to be packaged when the file name full path is generated after packagingExample: Package the/xahot folder into a/home/xahot.tar.gz file.# TAR-XF All.tarThis command is to solve all the files in
Tar-zcvf/home/xahot.tar.gz/xahotTAR-ZCVF the directory to be packaged when the file name full path is generated after packagingExample: Package the/xahot folder into a/home/xahot.tar.gz file.Zip compression method:Compresses the current folder Zip-r.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.